package com.yunji.config;

import io.swagger.annotations.ApiModelProperty;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @version 1.0
 * @Project: yunji-coffee
 * @Package com.yunji.config
 * @FileName KnifeBean.java
 * @Copyright Copyright © 2024 云集互联. All Rights Reserved
 * Company		com
 * @CreateTime 2024-06-12 15:27:21
 * @Description knife配置信息
 * @Modification Author                    History Time			Version				Description
 * --------------------------------------------------------------------------------
 * HuaAo0803@163.com	2024-06-12 15:27:21		1.0					1.0 Version
 * @since JDK 1.8.0_202
 */
@Component
@ConfigurationProperties(prefix = "documents")
public class KnifeBean {
    @ApiModelProperty("文档配置")
    private List<Info> list;

    public List<Info> getList() {
        return list;
    }

    public void setList(List<Info> list) {
        this.list = list;
    }

    public static class Info {
        @ApiModelProperty("接口别名")
        private String alies;

        @ApiModelProperty("接口分组")
        private String group;

        @ApiModelProperty("扫描路径,逗号分割")
        private String locations;

        public String getAlies() {
            return alies;
        }

        public void setAlies(String alies) {
            this.alies = alies;
        }

        public String getGroup() {
            return group;
        }

        public void setGroup(String group) {
            this.group = group;
        }

        public String getLocations() {
            return locations;
        }

        public void setLocations(String locations) {
            this.locations = locations;
        }
    }
}